/**
 * 
 */
package com.cipe.cmrs.model;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author krishna
 *
 */
@Entity
@Table(name="actionablealerts")
public class ActionableAlert extends BaseAuditEntity {
	private static final long serialVersionUID = -9131123475211645555L;
	@Transient
	private Integer dateid;
	@Column
	String module;
	@Column
	String type;
	@OneToMany(cascade=CascadeType.ALL,mappedBy="actionableAlert",fetch=FetchType.EAGER)
	List<ActionableAlertsMessage> actionableAlertMessages=new ArrayList<ActionableAlertsMessage>();
	
	@Column(name="description")
	private String description;
	
	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * @return the dateid
	 */
	public Integer getDateid() {
		return dateid;
	}
	/**
	 * @param dateid the dateid to set
	 */
	public void setDateid(Integer dateid) {
		this.dateid = dateid;
	}
	/**
	 * @return the module
	 */
	public String getModule() {
		return module;
	}
	/**
	 * @param module the module to set
	 */
	public void setModule(String module) {
		this.module = module;
	}
	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * @return the actionableAlertMessages
	 */
	public List<ActionableAlertsMessage> getActionableAlertMessages() {
		return actionableAlertMessages;
	}
	/**
	 * @param actionableAlertMessages the actionableAlertMessages to set
	 */
	public void setActionableAlertMessages(
			List<ActionableAlertsMessage> actionableAlertMessages) {
		this.actionableAlertMessages = actionableAlertMessages;
	}
	
	
		

}
